package com.example.his.api.mis.service;

import com.example.his.api.common.PageUtils;
import com.example.his.api.db.pojo.RuleEntiy;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

public interface RuleService {
  public ArrayList <HashMap> searchAllRule();
  
  //  分页查询促销规则
  public PageUtils searchByPage(Map param);
  
  //  添加促销规则
  public boolean insert(RuleEntiy ruleEntiy);
  
  
  //  根据id查找促销规则
  public HashMap searchById(int id);
  
  //  根据id修改促销规则
  public boolean update(RuleEntiy ruleEntiy);
  
  //  删除促销规则
  public boolean deleteById(int id);
}
